<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/product"%>
<%@ taglib prefix="order" tagdir="/WEB-INF/tags/order"%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<c:choose>
		<c:when test="${not empty selfCollectionCentreList}">
			<c:forEach items="${selfCollectionCentreList}" var="selfCollectionCentre" varStatus="varStatus">
				<input type="radio" id="selfCollectionCentreId${selfCollectionCentre.selfCollectionCentreId}" name="selfCollectionCentreId" value="${selfCollectionCentre.selfCollectionCentreId}" validConf="required">
				<label for="selfCollectionCentreId${selfCollectionCentre.selfCollectionCentreId}">
					${selfCollectionCentre.selfCollectionCentreName}
				</label>
				<br/>
			</c:forEach>
		</c:when>
		<c:otherwise>
			<tr>
				<td>
					<b><font color="red"><fmt:message key="checkout.destinationUnreachable2"/></font></b>
					<input type="hidden" name="selfCollectionCentreId" validConf="required"/>
				</td>
			</tr>
		</c:otherwise>
	</c:choose>
</table>

<script type="text/javascript">
$j(document).ready(function () {
	//选择第一个自提点
	<c:if test="${not empty selfCollectionCentreList}">
		$j('input[name="selfCollectionCentreId"]').get(0).click();
	</c:if>
});
</script>